GtkWindow: fix default empty window size with CSD
authorChristoph Reiter <reiter.christoph@gmail.com>
Mon, 22 Jun 2015 18:36:50 +0000 (20:36 +0200)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 23 Jun 2015 19:16:14 +0000 (21:16 +0200)
commit84e99b20ac806ee5fafd8646b599252057079961
tree2b419c68dc54025b03d3d071624dc27e94f177dc
parentda14dbe4e5a40fccf9155f4cd87c97457f9439d6
GtkWindow: fix default empty window size with CSD

In the non-CSD case we checked for 0x0 window size requisition
and replaced it with 200x200 so the window was still visible.
This no longer works in case of CSD as the shadow and title bar
are always added to the requisition resulting in a titlebar/shadow
only window in case there is no child widget (this is currently
visible under wayland or when setting GTK_CSD=1).

Instead of special casing the final window size, special case
the child requisition paths instead. This gives us the same
requisition in both, CSD and non-CSD cases (the header bar
has a too large minimum width atm so the resulting window is
still not the same)

https://bugzilla.gnome.org/show_bug.cgi?id=751341
gtk/gtkwindow.c